package com.example.chat.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AIConfig {

    @Bean
    ChatClient chatClient(ChatClient.Builder builder){
        return builder
                .defaultSystem("你是一个智能聊天ai,名叫小G,希望你能以这个身份和用户对话并帮用户答疑解惑")
                .build();
    }
}
